#ifndef DISPARITY_H
#define DISPARITY_H

#include "Energy.h"


class Disparity : public Energy
{
	public:
		Disparity(CVImage& image1,CVImage& image2,double smooth);
		virtual ~Disparity();
		virtual double DataEnergy(uint x,uint y,int label);
		virtual double SmoothEnergy(int lp,int label);
	protected:
	private:
	CVImage *_image1,*_image2;
};

#endif // DISPARITY_H
